package com.kefu.call.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@SuperBuilder
@ApiModel(description = "联系计划关联呼出表")
@TableName(value = "call_contact_plan_rel")
public class ContactPlanRel implements Serializable {
    /**
     * id
     */
    @NotEmpty
    @ApiModelProperty(name = "id", value = "主键")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 通话id
     */
    @TableField(value = "call_id")
    @ApiModelProperty(name = "callId", value = "通话id")
    private String callId;

    /**
     * 计划id
     */
    @TableField(value = "plan_id")
    @ApiModelProperty(name = "planId", value = "计划id")
    private String planId;

    /**
     * 是否是解决问题的通话
     */
    @TableField(value = "is_handler")
    @ApiModelProperty(name = "isHandler", value = "是否是解决问题的通话", allowableValues = "0=否，1=是")
    private Integer isHandler;
    private static final long serialVersionUID = 1L;
}